const Mock = require("mockjs")

const data = Mock.mock({
    "list|40":[
        {
            title:"@ctitle",
            img:"@image(50x50,@color)",
            id:'@id',
            name:"@cname",
            "childrenNext|10":[
                {
                    title:"@ctitle",
                    img:"@image(50x50,@color)",
                    id:'@id',
                    "imager|5":[
                        {
                            img:"@image(100x100,@color)",
                        }
                    ]
                }
            ]
        }
    ]
})

// 列表拦截请求  
Mock.mock('/api/getList', () => {
    return {
        code: 200,
        data: data.list
    }
})